﻿using Cirrious.MvvmCross.Application;
using Cirrious.MvvmCross.WinRT.Platform;
using TeaLightV5.Foundation.UX.WinRT.Platform;
using Windows.UI.Xaml.Controls;

namespace Conference.UX.WinRT
{
    public class Setup: 
        //MvxBaseWinRTSetup
        TeaBaseWinRtSetup
    {
        public Setup(Frame rootFrame)
            : base(rootFrame)
        {
        }

        protected override MvxApplication CreateApp()
        {
            var app = new Core.UX.App();
            return app;
        }

        protected override void AddPluginsLoaders(Cirrious.MvvmCross.Platform.MvxLoaderPluginRegistry loaders)
        {
            // provide loaders for any needed plugins here
            // e.g. loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Visibility.WinRT.Plugin>();
            loaders.AddConventionalPlugin<Cirrious.MvvmCross.Plugins.Sqlite.WinRT.Plugin>();
            base.AddPluginsLoaders(loaders);
        }
    }
}
